set(target ffi)

project(${target})
file(GLOB_RECURSE SRC
     CONFIGURE_DEPENDS
     LIST_DIRECTORIES False
     src/*.cc)
add_library(
  ${target}
  SHARED
  ${SRC}
)
target_include_directories(
  ${target}
  PUBLIC
    include/
  PRIVATE
    src/
)
target_link_libraries(
  ${target}
  PUBLIC
    runtime-ffi
    compiler-ffi
    utils-ffi
    substitutions-ffi
    pcg-ffi
    op-attrs-ffi
)

ff_set_cxx_properties(${target})
